# 统计字符串中a的个数
Str = "itheima is a brand of itcast"
count = 0
for x in Str:
    if x == 'a':
        count = count + 1
print(f"字符串{Str}中a的个数为{count}个")